package com.vortex.cloud.zhsw.xinyang.dto.common;

import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author bd
 */
@Data
@Schema(description = "通用枚举项")
@NoArgsConstructor
public class CommonEnumValueItemDTO {

    @Schema(description = "代码值")
    @Parameter(description = "代码值")
    private Object key;

    @Schema(description = "显示值")
    @Parameter(description = "显示值")
    private Object value;

    public CommonEnumValueItemDTO(Object key, Object value) {
        this.key = key;
        this.value = value;
    }
}
